package com.yhd.utils;



import com.yhd.Constant;
import org.springframework.util.StringUtils;

import javax.servlet.http.HttpServletRequest;
import java.util.UUID;


/**
 * @Deprecated 工具类
 */
public class Utils {

    public static boolean isAjax(HttpServletRequest httpRequest) {
        return (httpRequest.getHeader("X-Requested-With") != null && "XMLHttpRequest".equals(httpRequest.getHeader("X-Requested-With").toString()));
    }

    public static String getId(){
         UUID uuid = UUID.randomUUID();
         return uuid.toString().replace("-", "");
    }

}
